User Information
User Information API
β
Get the user's nickname, avatar, and wallet addressβ
API about user information If you want to query information about a user, you can use the following interfaces.
Gethttps://open.debox.pro/openapi/authorize/userinfoβ
Obtain user base information
Usage Example:
curl -X GET -H "X-API-KEY: t2X........AlEF6" "https://open.debox.pro/openapi/authorize/userinfo?user_id=uvg2p6ho"
curl -X GET -H "X-API-KEY: t2X........AlEF6" "https://open.debox.pro/openapi/authorize/userinfo?user_id=uvg2p6ho"
Parametersβ
Queryβ
user_id
: String
Userid of the user. The userid of the authorized user, can be obtained during login authorization
Headerβ
X-API-KEY
: String
App Key, apply on platform https://developer.debox.pro/
Responsesβ
200: OKβ
{
"code": 1,
"data": {
"name": "ltx", // user name
"wallet_address": "0xsadf......34df", // wallet address
"avatar": "https://data.debox.space/nfts/0x67a7f09c/699-1.png",// user header image
"uid": "fxidfef4" // the same to user_id
},
"message": "success",
"success": true
}